package com.edu.edumanager.bean;

import com.fasterxml.jackson.annotation.JsonInclude;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @program: edu-manager
 * @description:
 * @author: Jaime
 * @create: 2021-08-17 14:55
 **/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class EduVideo {
    private Integer id;
    private Integer courseId;
    private Integer chapterId;
    @NotBlank(message = "小节名称不能为空")
    private String title;
    @NotBlank(message = "小节视频url地址不能为空")
    private String videoSourceId;
    private String videoOriginalName;
    private Long playCount;
    private Boolean isFree;
    private Long duration;
    private String status;
    private Long size;
    private Long version;
    private Date gmtCreate;
    private Date gmtModified;

    @Override
    public String toString() {
        return "EduVideo{" +
                "id=" + id +
                ", courseId=" + courseId +
                ", chapterId=" + chapterId +
                ", title='" + title + '\'' +
                ", videoSourceId='" + videoSourceId + '\'' +
                ", videoOriginalName='" + videoOriginalName + '\'' +
                ", playCount=" + playCount +
                ", isFree=" + isFree +
                ", duration=" + duration +
                ", status='" + status + '\'' +
                ", size=" + size +
                ", version=" + version +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getChapterId() {
        return chapterId;
    }

    public void setChapterId(Integer chapterId) {
        this.chapterId = chapterId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getVideoSourceId() {
        return videoSourceId;
    }

    public void setVideoSourceId(String videoSourceId) {
        this.videoSourceId = videoSourceId;
    }

    public String getVideoOriginalName() {
        return videoOriginalName;
    }

    public void setVideoOriginalName(String videoOriginalName) {
        this.videoOriginalName = videoOriginalName;
    }

    public Long getPlayCount() {
        return playCount;
    }

    public void setPlayCount(Long playCount) {
        this.playCount = playCount;
    }

    public Boolean getIsFree() {
        return isFree;
    }

    public void setIsFree(Boolean free) {
        isFree = free;
    }

    public Long getDuration() {
        return duration;
    }

    public void setDuration(Long duration) {
        this.duration = duration;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}
